package com.machuxin.course.patterns.factory.simple;


import com.machuxin.course.patterns.factory.simple.beans.AppleFruits;
import com.machuxin.course.patterns.factory.simple.beans.Fruits;

/**
 *  简单工厂
 */
public class SimpleFactoryTest extends FruitsFactory {

    public static void main(String[] args) {

        FruitsFactory factory = new FruitsFactory();
        Fruits fruits = factory.create(AppleFruits.class);
        fruits.getName();

    }
}
